package com.appspot.applydigit.useraccount;

public class User {
	private String userid;
	private String userpwd;
	private String usersession;
	private String userrole;
	
	public void setUserId(String value) {
		this.userid = value;
	}
	
	public void setUserPwd(String value) {
		this.userpwd = value;
	}
	
	public void setUserSession(String value) {
		this.usersession = value;
	}
	
	public void setUserRole(String value) {
		this.userrole = value;
	}
	
	public String getUserId() {
		return this.userid;
	}
	
	public String getUserPwd() {
		return this.userpwd;
	}
	
	public String getUserSession() {
		return this.usersession;
	}
	
	public String getUserRole() {
		return this.userrole;
	}

	public boolean checkAuthorize(String uid,String pwd) {
		return checkPermission(uid,pwd);
	}

	private boolean checkPermission(String uid,String pwd) {
		if(uid.equals("Stamp") && pwd.equals("IG7a8ze9")) {
			return true;
		}else {
			return false;
		}
	}
	
}
